from class_method import Date


class User:

    def __init__(self, birthday):
        self.__birthday = birthday

    def get_age(self):
        return 2018 - self.__birthday.year


user = User(Date.cls_from_str("1985-01-05"))
print(user.get_age())
# print(user._User__birthday)
